<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>Document</title>
</head>
<body>
	
	<script>
		var arr =   [ 
				        [ "12" ], 
				        [ "blob:http://localhost:8090/a23268b6-dde4-4ae8-a845-3fc0bc9c4ef8" ], 
				        [ "12", "12" ], 
				        [ "12" ], 
				        [ "blob:http://localhost:8090/a23268b6-dde4-4ae8-a845-3fc0bc9c4ef8" ], 
				        [ "12", "12" ],
				        [ "13" ], 
				        [ "kkkkkkkkkkkkkkkkkkkkkkk" ], 
				    ]
		
		function two_dimension(arr,num){
	        var arr1 = [],length=arr.length;
	        for(var i=0;i<length;i+=num){
	            var letarr = []
	            if(length-i<num){//当数组不够等分的情况下
	                for(var j=0;j<length-i;j++){
	                    letarr.push(arr[i+j])
	                }
	            }else{
	                for(var j=0;j<num;j++){
	                    letarr.push(arr[i+j]);
	                }
	            }
	            arr1.push(letarr)
	        }
	        return arr1;
	    }
    console.log(two_dimension(arr,3))
    console.log(two_dimension(arr,4))
    
  
	</script>
</body>
</html>